<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="order/doedit">
    <div class="alert alert-warning-light">
        订单状态修改后 房间状态也会根据订单状态的改变而状态回归，请慎重修改,<br>
        当用户付款时，出现费用不足时，可以手动修改价格，让用户可以支付，补加费用后，订单总金额会调整
    </div>
    <input id="c-order_id"   data-rule="required" class="form-control" name="row[id]" type="hidden" value="{$row.id}">
    <input id="c-order_room_id"   data-rule="required" class="form-control" name="row[room_id]" type="hidden" value="{$row.room_id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_numbe')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_numbe" disabled data-rule="required" class="form-control" name="row[order_number]" type="text" value="{$row.order_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('house.h_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_h_title" disabled data-rule="required" class="form-control" name="row[order_numbe]" type="text" value="{$row.house.h_title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User.nickName')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" disabled data-source="user/user/index" data-field="nickName" class="form-control" name="row[user_id]" type="text" value="{$row.user.nickName|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" disabled class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bprice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bprice" data-rule="required" disabled class="form-control" step="0.01" name="row[bprice]" type="number" value="{$row.bprice|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Deposit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-deposit" data-rule="required" disabled class="form-control" step="0.01" name="row[deposit]" type="number" value="{$row.deposit|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('All_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-all_price" data-rule="required" disabled class="form-control" step="0.01" name="row[all_price]" type="number" value="{$row.all_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hour" data-rule="required" disabled class="form-control" step="0.01" name="row[hour]" type="number" value="{$row.hour|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('min')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-min" data-rule="required" disabled class="form-control" step="0.01" name="row[min]" type="number" value="{$row.min|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('second')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-second" data-rule="required" disabled class="form-control" step="0.01" name="row[second]" type="number" value="{$row.second|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('All_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-all_money" data-rule="required" disabled class="form-control" step="0.01" name="row[all_money]" type="number" value="{$row.all_money|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">收入:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-over_fee" data-rule="required" disabled class="form-control" step="0.01" name="row[income]" type="number" value="{$row.over_fee|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('return_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-return_money" data-rule="required" disabled class="form-control" step="0.01" name="row[return_money]" type="number" value="{$row.return_money|htmlentities}">
        </div>
    </div>

       <div class="form-group">
           <label class="control-label col-xs-12 col-sm-2">{:__('otherMoney')}:</label>
           <div class="col-xs-12 col-sm-8">
               <input id="c-otherMoney" class="form-control" name="row[otherMoney]" type="number" placeholder="" value="{$row.otherMoney|htmlentities}">
           </div>
       </div>
       <div class="form-group">
           <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
           <div class="col-xs-12 col-sm-8">
               <input id="c-remarks" class="form-control" name="row[remarks]" type="text" placeholder="对补加的费用说明:退款费用为负数时，用户是不能退房的，需要管理员核实后，补加上费用，费用为：退款费用（正数）" value="{$row.remarks|htmlentities}">
           </div>
       </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Add_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-add_time" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[add_time]" type="text" value="{:$row.add_time?datetime($row.add_time):''}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('moveinto_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="moveinto_time" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[moveinto_time]" type="text" value="{:$row.moveinto_time?datetime($row.moveinto_time):''}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('checkout_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="checkout_time" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[checkout_time]" type="text" value="{:$row.checkout_time?datetime($row.checkout_time):''}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_time" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-paystatus" class="form-control selectpicker" name="row[pay_status]">
                {foreach name="payStatusList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.pay_status"} selected {/in} >{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('refund_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-refund_status" disabled class="form-control selectpicker" name="row[refund_status]">
                {foreach name="RefundStatusList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.refund_status"} selected {/in} >{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>


